home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Information / alt-sources-mac-digest-94-05.tx < prev    next >
Internet Message Format  |  1994-06-09  |  28KB

  1. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  2. Subject: Alt.sources.mac Digest #5
  3. Date: 29 Apr 1994 20:04:50 GMT
  4.  
  5.   Just thought I would crank this out before finals week...
  6.  
  7.  
  8. alt.sources.mac digest #5-94                      4/29/94
  9.  
  10. Today's Contents:
  11.  
  12.   [!] administrivia
  13.  
  14.   [*] 00snippets.cpt.hqx
  15.   [*] arrowcdef.cpt.hqx
  16.   [*] cwdropshell.cpt.hqx
  17.   [*] dialectic.cpt.hqx
  18.   [*] finderprogbar1.1.cpt.hqx
  19.   [*] graf3dpas.cpt.hqx
  20.   [*] mount.cpt.hqx
  21.   [*] offscreentoys.cpt.hqx
  22.   [*] pasanimcurs.cpt.hqx
  23.   [*] pasfloats.cpt.hqx
  24.   [*] patchlib1.0d2.cpt.hqx
  25.   [*] photoplug.cpt.hqx
  26.   [*] profont.cpt.hqx
  27.   [*] program.cpt.hqx
  28.   [*] qdgxprint.cpt.hqx
  29.   [*] setcell.cpt.hqx
  30.   [*] shutdownfx1.4.cpt.hqx
  31.   [*] tcexceptions.cpt.hqx
  32.   [*] writethrough.cpt.hqx
  33.   
  34.   [#] aesendrec
  35.   [#] ascii2ebcdic
  36.   [#] calcarrows
  37.   [#] calllapmgr
  38.   [#] cicnshowinit
  39.   [#] devicedepth
  40.   [#] fastcopybits
  41.   [#] flashditem
  42.   [#] floatinghdrs
  43.   [#] highbit
  44.   [#] inbg
  45.   [#] itoroman
  46.   [#] missle
  47.   [#] mymacnames
  48.   [#] numofcolors
  49.   [#] numofcolors2
  50.   [#] opencd
  51.   [#] randomlongs
  52.   [#] resdecompress
  53.   [#] simpledrag
  54.   [#] startinit
  55.   [#] statusreg
  56.   [#] texteditbounds
  57.   [#] trackhalfrect
  58.   [#] traversedir
  59.   [#] unmountvol
  60.  
  61.   [!] Who's Who List
  62.   [!] Archive organization
  63.   
  64.   The alt.sources.mac archive is at ftpbio.bgsu.edu
  65. (129.1.252.66) in the /ftp/pub/alt.sources.mac directory.  
  66. Files listed with an [*] before them are in the main
  67. directory.  Files listed with an [#] in front of them
  68. are in the /ftp/pub/alt.sources.mac/00snippet directory.
  69. Scripts are stored in the /ftp/pub/alt.sources.mac/scripts
  70. directory.
  71.  
  72.   Also stored at the archive site are the FAQs for the
  73. Mac newsgroups in the /ftp/pub directory.  Postings to
  74. comp.sources.mac are archived in the /ftp/pub/comp.sources.mac
  75. directory.  The alt.sources.mac digests are archived in the
  76. /ftp/pub/digests directory.
  77.  
  78.   The alt.sources.mac newsgroup is for the distribution of
  79. sources only.
  80.  
  81. ************************************************************
  82.  
  83. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  84. Subject: Administrivia
  85.  
  86.   Welcome to the alt.sources.mac digest.  Currently, I am
  87. the moderator of the archive.  I thought I would post this
  88. message to show everyone what has been accumulating at the
  89. archive site.
  90.  
  91.   Your contributions are highly recommended and accepted.
  92. If you don't have access to the alt.sources.mac newsgroup,
  93. you can email your contribution to me (dnebing@andy.bgsu.edu)
  94. and I will add it to the archive, or you can upload it to
  95. the /ftp/pub/incoming directory at the archive site.
  96.  
  97.   A special item being added to the archive is the
  98. 00snippets.cpt.hqx file.  This file is an archive which contains
  99. all of the items in the 00snippets folder.  Since there were
  100. numerous people who would log into the archive and download
  101. everything I thought that it might make downloading easier
  102. and faster.
  103.  
  104.   Any other suggestions are welcome and encouraged.
  105.   
  106.   Dave Nebinger (dnebing@andy.bgsu.edu)
  107.   
  108. ************************************************************
  109.  
  110. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  111. Subject: 00snippets.cpt.hqx
  112.  
  113. The file called 00snippets.cpt.hqx is an archive which contains
  114. all of the snippets in the 00snippets folder.  I decided to start
  115. this little thing because lots of people were logging in and
  116. downloading everything in the archive.  Now all that is necessary
  117. is to download the 00snippets.cpt.hqx to get all of the currently
  118. available snippets.
  119.  
  120. Dave Nebinger
  121.  
  122. [archived as: /ftp/pub/alt.sources.mac/00snippets.cpt.hqx]
  123. ============================================================
  124.  
  125. From: hay@cs.colorado.edu (David J. Hay)
  126. Subject: ArrowCDEF
  127.  
  128.   This is a CDEF I wrote for implementing an up-down arrow similar to those
  129. found in the color picker. It supports the ability to use any PICT
  130. resources
  131. to draw the arrow, so you can make the arrow look however you like.
  132.  
  133.   Included is a Think C 5.0.4 project for the CDEF and a program to test
  134. it. The test program includes a resource file with a B&W set of arrows
  135. and a color set of arrows.
  136.  
  137.   If you have any comments, questions, suggestions, or *gasp* bug reports,
  138. please let me know.
  139.  
  140. [archived as: /ftp/pub/alt.sources.mac/arrowcdef.cpt.hqx]
  141. ============================================================
  142.  
  143. From: gwatts@whcdfo.fnal.gov
  144. Subject: MW CW dropshell code resource fixer...
  145.  
  146. Hi,
  147.   More output from this weekend.  The source files here should be combined
  148. with
  149. dropshell source to make a simple drag/drop appl that will strip the
  150. standard
  151. code resource header off a MW code resource.
  152.  
  153. MW won't (yet -- I've seen note on c.s.m.p that MW will add this
  154. functionality)
  155. make a code resource with a custom header.  This guy will copy main down
  156. to the start of the resource.  Main must come RIGHT AFTER the header (this
  157. isn't a given -- glue code, like long division on a 68000 can easily get in
  158. the way).  The advantage of this is that offsets relative to a4 will remain
  159. valid.
  160.  
  161. It looks for "JMP" (2byte style) in the header and corrects the offsets for
  162. the ones it finds.  It stops copying the code when it sees the first RTS 
  163. instruction.
  164.  
  165. I wrote this to help me write print extensions -- your milage may varry!
  166.  
  167. This is a MW project.  If you want to compile drop shell in mw with ppc
  168. interfaces you'll have to make a couple of minor modifications to the
  169. apple events section of the code.
  170.  
  171.     Cheers,
  172.         Gordon.
  173.  
  174. [archived as: /ftp/pub/alt.sources.mac/cwdropshell.cpt.hqx]
  175. ============================================================
  176.  
  177. From: f8dy@netaxs.com (Mark Pilgrim)
  178. Subject: Dialectic 1.2 (text utility, THINK C) part 0 of 3
  179.  
  180. Dialectic 1.2 is a general text conversion utility to pass text through a
  181. "dialect" filter of your choice.  Version 1.2 adds a "convert clipboard"
  182. feature, four new dialects, an improved Chef dialect, massive technical
  183. improvements, and Balloon Help.  This version includes the following
  184. dialects:
  185. Chef, Fudd, WAREZ, Underwater, Middle English, Pig Latin, Morse Code, Op,
  186. and
  187. Rot-13.  Supports drag and drop of any number of text, RTF, or Teachtext
  188. "read-only" files of any length.  This archive contains complete C source
  189. code
  190. and related project files.  Application also available; check ftp sites or
  191. e-mail f8dy@netaxs.com.  Finger f8dy@netaxs.com for complete program list.
  192. Copyright (C) 1994, Mark Pilgrim.  Please read enclosed file "GNU General
  193. Public License" for licensing details.  Have a nice day.
  194.  
  195. [archived as: /ftp/pub/alt.sources.mac/dialectic.cpt.hqx]
  196. ============================================================
  197.  
  198. From: cklarson@relleno.engr.ucdavis.edu (Christopher Klaus Larson)
  199. Subject: finder-progress-bar-11.hqx
  200.  
  201. Enclosed below is a compressed, binhexed package containing THINK C 7.0
  202. source for a CDEF which mimics the progress bars used by Finder.
  203.  
  204. Enjoy.
  205.  
  206. --Chris
  207.  
  208. [archived as: /ftp/pub/alt.sources.mac/finderprogbar1.1.cpt.hqx]
  209. ============================================================
  210.  
  211. From: ingemar@lysator.liu.se (Ingemar Ragnemalm)
  212. Subject: Graf3d demos (Pascal)
  213.  
  214. Enclosed are two old demos (Boxes.p and BoxSphere.p) that I found on my
  215. old Turbo Pascal disks. They demonstrate the usage of the Graf3D
  216. library.
  217.  
  218. I modified them to run under Think Pascal, plus made a variation on
  219. each - a color "Boxes" and a version of BoxSphere that uses an
  220. offscreen grafport for flicker-free updates.
  221.  
  222. /Ingemar Ragnemalm
  223.  
  224. [archived as: /ftp/pub/alt.sources.mac/graf3dpas.cpt.hqx]
  225. ============================================================
  226.  
  227. From: Michael Trevor Cutter (mtc@mundil.cs.mu.OZ.AU)
  228. Subject: Appleshare Mounting Part [0/1] (Pascal & HC)
  229.  
  230. A while ago, on the MacDevelop mailing list, someone wrote:
  231. >    I was interested in allowing a user to login to an appleshare server
  232. >directly through my program.  Given the server name, zone name and user name (&
  233. > password, of course) is there any way to do this programmaticaly?
  234.  
  235. I stupidly posted my solutions to the list, without thinking. It had been a
  236. long
  237. year. I have since noticed that the code hasn't made it into
  238. alt.sources.mac
  239. or onto the archive for it, so here it is. Apologies to those on the list
  240. if
  241. you see it again, I hope this is an appropriate place to put it.
  242.  
  243. There are two ways of doing this. The System 7 only way is to use the 
  244. procedures in the File Manager section of IM VI (or NIM Files, I presume)
  245. which describe mounting volumes programmatically.
  246.  
  247. Otherwise, to make it work under System 6, you need Landon Dyer's
  248. Mount/Unmount 
  249. XCMDs (version 1.12 is on info-mac and umich and is included here) and call
  250. them
  251. as code resources. It isn't hard, and they don't make any call backs.
  252.  
  253. I have provided the code which I use. You should have no trouble adapting
  254. it
  255. to your own use. It is a concerted effort between various people, both in
  256. the
  257. technique of loading and calling an XCMD from code, (David Skinner),
  258. mounting
  259. volumes with the XCMD (Landon Dyer) and mounting volumes under System 7
  260. (Mark D
  261. Larimer).
  262.  
  263. Feel free to modify and redistribute it. You can probably ignore the 
  264. copyright messages in my name, but my boss insisted. (They only apply to
  265. parts
  266. of the code anyway.)
  267.  
  268. Included files (as a Compactor Pro archive):
  269.  
  270. MCMountStuff.p       Code for mounting a volume under System 7.
  271. MCXCMDMountStuff.p   Code for mounting a volume using the XCMDs.
  272. Mount/Unmount XCMD   1.12 Hypercard stack with mounting XCMDS.
  273.  
  274. [archived as: /ftp/pub/alt.sources.mac/mount.cpt.hqx]
  275. ============================================================
  276.  
  277. From: Ingemar Ragnemalm (ingemar@lysator.liu.se)
  278. Subject: Offscreen Toys (Pascal)
  279.  
  280. Enclosed is Offscreen Toys, a small animation demo for Think Pascal.
  281. It produces sprite animation over a detailed background, reasonably
  282. flicker-free, in color or b/w. It should run on all Macs.
  283.  
  284. Includes:
  285. - glue code for using "cicn"s and "ppat"s on old, 68000-based Macs.
  286. - glue code for switching between GWorlds and offscreen bitmaps depending
  287. on whether GWorlds are available or not
  288. - comments in english :-)
  289.  
  290. In order to make it quickly downloaded and easy to understand, I've kept
  291. it small and simple. The source is 25k with comments, and the compiled
  292. binary under 10k!
  293.  
  294. I made this in order to complement SAT (Sprite Animation Toolkit) with
  295. a tutorial source example. Believe me, it's much easier to learn animation
  296. from this 25k demo than from a feature-bloated library. It's free, of
  297. course.
  298.  
  299. [archived as: /ftp/pub/alt.sources.mac/offscreentoys.cpt.hqx]
  300. ============================================================
  301.  
  302. From: drickey@irus.rri.uwo.ca (Daniel W. Rickey)
  303. Subject: Pascal animate cursor source code
  304.  
  305. Enclosed is the Think Pascal source code for animating the cursor. 
  306. This is more or less from one of the new inside macintosh manuals.
  307.  
  308. Daniel W. Rickey
  309.  
  310. [archived as: /ftp/pub/alt.sources.mac/pasanimcurs.cpt.hqx]
  311. ============================================================
  312.  
  313. From: pottier@corvette.ens.fr (Francois Pottier)
  314. Subject: Re: any _Pascal_ floating window code out there?
  315.  
  316. In article <CowB6I.Fvn@newsflash.concordia.ca>,
  317. Keith MacDonald <ikb_macd@ECE.Concordia.CA> wrote:
  318.  
  319. >I'm looking for some code to aid in making a floating window using Think
  320. >Pascal.  
  321.  
  322. I have written a Think Pascal library that does the job. It's available
  323. by ftp from sumex and umich, but I'll post it here anyway (I'm not sure
  324. they have the latest bug fix).
  325.  
  326. It's based on some C code written by Patrick C. Doane. (Patrick5@aol.com)
  327. The difference is that the original code was optimized for speed, whereas
  328. mine is more concerned about readability, and makes much more use of the
  329. available Toolbox calls.
  330.  
  331. I hope this helps
  332.  
  333. Francois.
  334. pottier@dmi.ens.fr
  335.  
  336. [archived as: /ftp/pub/alt.sources.mac/pasfloats.cpt.hqx]
  337. ============================================================
  338.  
  339. From: ari@world.std.com (Ari I Halberstadt)
  340. Subject: PatchLib-10d2.hqx (part 1 of 1)
  341.  
  342. Patch Library is used to manage patches to traps. Installing and removing
  343. patches is simpler than using the Toolbox routines NSetTrapAddress and
  344. NGetTrapAddress. In addition, macros are provided that setup and restore
  345. the environment for the patch routine. C source code is provided.
  346.  
  347. [archived as: /ftp/pub/alt.sources.mac/patchlib1.0d2.cpt.hqx]
  348. ============================================================
  349.  
  350. From: drickey@irus.rri.uwo.ca (Daniel W. Rickey)
  351. Subject: Pascal Photoshop Plug-In #1
  352.  
  353. Enclosed is the Think Pascal source code for an Adobe Photoshop
  354. Plug-In.
  355. Daniel W. Rickey
  356.  
  357. [archived as: /ftp/pub/alt.sources.mac/photoplug.cpt.hqx]
  358. ============================================================
  359.  
  360. From: Pete Gontier (gurgle@netcom.com)
  361. Subject: Re: WANTED: Good programming FONT!!
  362.  
  363. cmmiller@iastate.edu (Chad M. Miller) writes:
  364.  
  365. >One thing I have yet to find is a TrueType font which is monospaced and
  366. >has a diagonal line through the 0's (zero's).
  367.  
  368. But the best one I found is called "ProFont", shareware from way back in
  369. ancient history. Andrew Welch did it when he was just starting out. I
  370. had to convert it from an old FONT resource into a real suitcase. He has
  371. since released it as "a gift to the Mac programming community". Here it
  372. is.
  373.  
  374. Those of you reading this in alt.sources.mac, spare me the reminder that
  375. this isn't source code. I think it's close enough. Trust me, nobody is
  376. going to use this for desktop publishing.
  377.  
  378.   [admin: Yeah, this isn't source code, but it is quite useful.  Just
  379.    wish that someone could convert it to a truetype font... ;-) ]
  380.    
  381. [archived as: /ftp/pub/other/profont.cpt.hqx]
  382. ============================================================
  383.  
  384. From: woody@alumni.caltech.edu (William Edward Woody)
  385. Subject: Re: WANTED: Good programming FONT!!
  386.  
  387. Bill Williams <bwilliam@iat.holonet.net> wrote:
  388. >Ahem...
  389. >
  390. >Real programmers use proportional fonts not monospaced fonts, because good
  391. >programmers know that readability and high speed comprehesion are
  392. >paramount concerns. That is why all printed media is in proportional fonts
  393. >(Newspapers, books, magazines, etc.).
  394.  
  395. Oh, get real. "Ahem..." indeed.
  396.  
  397. This goes into my file along with all of those "Real programmers don't
  398. write software for WYSIWYG computers", "Real programmers prefer
  399. interrupt-driven multi-tasking environments to non-interrupt driven
  400. multi-tasking", and "Real programmers don't need comments to understand
  401. their code."
  402.  
  403. "Readability and high speed comprehension are paramount concerns."
  404.  
  405. Yes, and this is why real programmers use plenty of whitespace and
  406. comments explaining what's going on. When the typical piece of C-code
  407. I run across looks like this:
  408.  
  409.     for(i=0,j=0,p=GPtr;isspace(*p)&&(i==0||j==0);*p++=b[i++]){
  410.  
  411. (you get the idea; line noise), whether or not this little gem is in
  412. Monaco 9 or Palantino 12, it's still line-noise. Comprehension does
  413. not go up significantly.
  414.  
  415. For me, the font I like to use for my progamming is attached to this
  416. message. It was a font I created for my own use a couple of years ago,
  417. and it still serves me well.
  418.    
  419. [archived as: /ftp/pub/other/program.cpt.hqx]
  420. ============================================================
  421.  
  422. From: gwatts@whcdfo.fnal.gov
  423. Subject: Simple QDGX print extensions -- style writer log file...
  424.  
  425. Hi all,
  426.   Did you all have a good weekend?  I saw a couple of bands here in
  427. Chicago:
  428.  
  429. Loud Lucy: Hard alternative (good)
  430. Veruca Salt: alternative (good) -- I think that translates to "Wart Salt"
  431.                 in case any of you were wondering
  432. Texas Rubies: Vegatarian Country (fell in love with one of the singers)...
  433.  
  434. But, on a lighter note, when I my eyes weren't glazed over with an
  435. alcaholic
  436. haze (and my mind going: write your thesis!  write your thesis!) I played a
  437. little with my mac.
  438.  
  439. This posting contains code for a very very simple quickdraw gx print
  440. extension
  441. written with Metrowerks CW DR1 compiler.  The stylewriter II print driver
  442. no
  443. longer adds text to the log file (at least, not my beta 3) so I decided it
  444. would be a great place to start and see if it I could write a print
  445. extension
  446. in MW.
  447.  
  448. This is very stripped down -- all it writes are the "Number of pages" line,
  449. no job name, or time stamp.  That is left as an exercise for the reader :)
  450. This was an existance proof for me -- now that I know I can write it, I can
  451. get onto the print extension I've always wanted to write!
  452.  
  453. MW does not make custom resource headers, which are needed to write a
  454. print extension.  Sooooo, I've included a little app (source in a seperate
  455. posting) that strips out MW's resource header and replaces it with the main
  456. routine.  It isn't very robust.  See the seperate posting.
  457.  
  458. This code isn't bullet proof.  Testing was painful on my SE/30 with 5 megs
  459. of
  460. RAM... (thank god for VM).  GX, during printing, often wanted almost 5 megs
  461. of
  462. RAM all to itself!  Anyone got any spare 1 meg simms? :)  It was developed
  463. with the GX beta 3 from the develop CD.
  464.  
  465. There is more info in readme.txt, in this stuffit archive.
  466.  
  467. [archived as: /ftp/pub/alt.sources.mac/qdgxprint.cpt.hqx]
  468. ============================================================
  469.  
  470. From: greer@utdallas.edu (Dale M. Greer)
  471. Subject: SetCell.c - AppleEvents to Run Excel
  472.  
  473. Many thanks to those who responded to my pleas for information
  474. on how to use AppleEvents to drive Excel, especially to John
  475. Nagle who sent an AppleEvent in text form, from which I finally
  476. was able to figure out how to do it.
  477.  
  478. The following contains SetCell.c, SetCell.r and SetCell.make,
  479. to make a small application that puts some data and an
  480. equation into some cells in an Excel spreadsheet.  It was
  481. written with MPW C 3.3 on 31 March 1994 by Dale M. Greer.
  482. This file has a little fewer than 8K.
  483.  
  484. [archived as: /ftp/pub/alt.sources.mac/setcell.cpt.hqx]
  485. ============================================================
  486.  
  487. From: f8dy@netaxs.com (Mark Pilgrim)
  488. Subject: Shutdown FX 1.4 (INIT, THINK C) part 0 of 3
  489.  
  490. Shutdown FX 1.4 clears the screen with a cool graphic effect every time
  491. you restart or shut down your Mac.  Holding down the option key while
  492. restarting or shutting down brings up an options dialog.  Version 1.4
  493. adds 28 new effects, for a total of 44.  This archive contains complete
  494. C source code and related project files.  INIT also available; check ftp
  495. sites or e-mail f8dy@netaxs.com.  Finger f8dy@netaxs.com for complete
  496. program list.  Copyright (C) 1993-4, Mark Pilgrim.  Please read enclosed
  497. file "GNU General Public License" for licensing details.
  498.  
  499. [archived as: /ftp/pub/alt.sources.mac/shutdownfx1.4.cpt.hqx]
  500. ============================================================
  501.  
  502. From: gwatts@whcdfo.fnal.gov
  503. Subject: Think C exceptions in Threads
  504.  
  505. Hi,
  506.   A bunch of thread classes for Think C (compiled with 5.0).  It shows
  507. how to do execptions (Think C's TRY/CATCH stuff) with threads.  It uses
  508. a custuom switcher call back routine to save all the global variables and
  509. surrounds the thread procedure with a try/catch with a no_propagate in it.
  510.  
  511. I wrote this code some time ago for a network ping project.  It has been
  512. running
  513. on my mac for about two months now, so the code is fairly stable for me.
  514.  
  515. Someone asked about this -- I don't recall who -- but here it is.
  516.  
  517. Included is source for a test project I wrote to test out these classes. 
  518. It
  519. shows an example of how to use them.
  520.  
  521. This code was ripped out of another bigger project -- so It isn't going to
  522. compile right off the bat.  You'll have to slot it into your own stuff.
  523.  
  524. [archived as: /ftp/pub/alt.sources.mac/tcexceptions.cpt.hqx]
  525. ============================================================
  526.  
  527. From: Stuart Cheshire <cheshire@cs.stanford.edu>
  528. Subject: Macintosh Disk Cache fix -- 25 times speedup
  529.  
  530. Has anyone else noticed that at the end of extracting a binary in
  531. Nuntius the disk light comes on, stays on for a few seconds, and
  532. freezes the Mac for that duration? It gets unbearable if you have
  533. a large disk cache, but even with only a 256K cache it can freeze
  534. the Mac for up to 5 seconds.
  535.  
  536. The problem is that Nuntius (and other programs) write their data to
  537. disk in chunks (say 4K each) and the Mac caches the blocks in its
  538. disk cache. When the file is closed the data is finally written to disk,
  539. and this is what causes the big freeze up. It would be much better if
  540. the data were written continually to disk, instead of in one big burst
  541. at the end.
  542.  
  543. Yesterday morning I wrote a little INIT which sets the File Manager
  544. "don't cache" bit for disk writes of 1K or more.
  545.  
  546. [admin note: enclosed is the init, the code for the init, and the
  547.  code for the test program as well.]
  548.  
  549. [archived as: /ftp/pub/alt.sources.mac/writethrough.cpt.hqx]
  550.  
  551. ************************************************************
  552.  
  553. snippetname     Description
  554.   
  555. aesendrec       Send and receive custom AppleEvents
  556.   Deirdre Maloy (Deeny3@aol.com)
  557.   Sample C code for sending and receiving custom Apple
  558.   Events.
  559.   
  560. ascii2ebcdic    Convert ASCII to EBCDIC
  561.   Matt Mora (mxmora@unix.sri.com)
  562.   ZBasic code to convert ASCII characters to packed
  563.   EBCDIC format.
  564.   
  565. calcarrows      Drawing arrows at line ends
  566.   Sak Wathanasin (sw@network-analysis-ltd.co.uk)
  567.   MacApp code to calculate the arrows to draw at the
  568.   ends of line segments.
  569.   
  570. calllapmgr      Determining if AppleTalk is on
  571.   Matt Mora (mxmora@unix.sri.com)
  572.   C code to determine if AppleTalk is on or off.
  573.   
  574. cicnshowinit    ShowINIT using 'cicn' resources
  575.   Tom Bridgewater (tbridgwa@cymbal.calpoly.edu)
  576.   ShowINIT modified to use 'cicn' resources.
  577.   
  578. devicedepth     Determine device's bit depth
  579.   Kent Reuber (reuber@hydra.rose.brandeis.edu)
  580.   C macros for determining the bit depth of a device.
  581.   
  582. fastcopybits    Faster copy bits routine
  583.   Alex Metcalf (alex@metcalf.demon.co.uk)
  584.   Assembly language routine for a faster CopyBits.
  585.   
  586. flashditem      Flashing a dialog item
  587.   Troy Gaul (t-gaul@i-link.com)
  588.   Sample code for flashing a dialog item, in this
  589.   specific case a button.
  590.  
  591. floatinghdrs    Floating Window Lib headers
  592.   Ken Prehoda (kenp@nmrfam.wisc.edu)
  593.   Universal Headers extracts needed to compile the Floating
  594.   Windows library from Develop issue 15.
  595.   
  596. highbit         Finding the high bit in a long
  597.   Ed Walker (saseew@router.unx.sas.com)
  598.   C code for finding the setting of a high bit in a long.
  599.   
  600. inbg            Determine whether in the background or not
  601.   Michael Trevor Cutter (mtc@mundil.cs.mu.OZ.AU)
  602.   Pascal function to determine whether currently in the
  603.   background.
  604.   
  605. itoroman        Converting an integer to a roman numeral
  606.   Gary Kacmarcik (platypus@cirrus.som.cwru.edu)
  607.   C snippet for converting an integer to a roman number.
  608.   
  609. missle          Missle Command game code
  610.   Robert P Munafo (mrob@world.std.com)
  611.   Rob's pascal code for a missle commander game originally
  612.   written for the Lisa (circa 1984) and still works on
  613.   Power PC Macs today.
  614.   
  615. mymacnames      Access the Owner and Mac names
  616.   Peter N Lewis (peter.lewis@info.curtin.edu.au)
  617.   Pascal code for retrieving the owner and mac names.
  618.   
  619. numofcolors     Determine number of available colors
  620.   Paul Rademacher (paulr@cs.wvu.edu)
  621.   C function to determine the number of available colors.
  622.   Limited to returning the colors for the main screen, and
  623.   only handles up to 256 colors.
  624.   
  625. numofcolors2    Determine number of available colors
  626.   Robert S. Mah (rmah@panix.com)
  627.   C function to determine the number of available colors
  628.   on all monitors, handles more than 256 colors.
  629.   
  630. opencd          Opening Apple's CDROM
  631.   Matt Mora (mxmora@unix.sri.com)
  632.   C code to open Apple's CDROM drive.
  633.   
  634. randomlongs     Determining a random long
  635.   Jim Lloyd (afcjlloyd@aol.com)
  636.   C code to determine a random long number.
  637.   
  638. resdecompress   Adding decompression resource to ResEdit
  639.   Eddy J. Gurney (egurney@vcd.hp.com)
  640.   Instructions for adding Aladdin's resource compression
  641.   scheme to ResEdit, which enables the ability to examine
  642.   resources from Stuffit Expander and BBEdit.
  643.   
  644. simpledrag      Pascal Drag Manager sample
  645.   Matt Mora (mxmora@unix.sri.com)
  646.   Pascal port of Greg Robbin's Drag Manager sample
  647.   code.
  648.   
  649. startinit       C INIT code
  650.   Nico Marcuz (nico@vaws01.bau-verm.uni-karlsruhe.de)
  651.   C code for a simple INIT.
  652.   
  653. statusreg        Accessing the status register
  654.   Chris Wysocki (wysocki@netcom.com)
  655.   C glue to access the status register.
  656.   
  657. texteditbounds  Calculating the width of the largest line
  658.   Ari I Halberstadt (ari@world.std.com)
  659.   C source to calculate the width of the largest line in
  660.   either old textedit or styled textedit.
  661.   
  662. trackhalfrect   Track part of a rect for a control
  663.   Sean J. Crist (kurisuto@chopin.udel.edu)
  664.   C function for tracking part of a rect.  Intended to be
  665.   used in conjunction with a control.
  666.   
  667. traversedir     Traverse the directory structure
  668.   Eric Hegstrom (theeric@netcom.com)
  669.   C function for traversing the directory structure.
  670.   
  671. unmountvol      Unmounting a volume programmatically.
  672.   Michael Morehead (busnetwork@aol.com)
  673.   Pascal code (from a 4D external) for unmounting a volume.
  674.   
  675. ************************************************************
  676.  
  677. Who's Who in Digest #5...
  678.  
  679. The contributors to this digest are:
  680.   Tom Bridgewater (tbridgwa@cymbal.calpoly.edu)
  681.   Stuart Cheshire (cheshire@cs.stanford.edu)
  682.   Sean J. Crist (kurisuto@chopin.udel.edu)
  683.   Michael Trevor Cutter (mtc@mundil.cs.mu.OZ.AU)
  684.   Troy Gaul (t-gaul@i-link.com)
  685.   Pete Gontier (gurgle@netcom.com)
  686.   Dale M. Greer (greer@utdallas.edu)
  687.   Eddy J. Gurney (egurney@vcd.hp.com)
  688.   Ari I Halberstadt (ari@world.std.com)
  689.   David J. Hay (hay@cs.colorado.edu)
  690.   Eric Hegstrom (theeric@netcom.com)
  691.   Gary Kacmarcik (platypus@cirrus.som.cwru.edu)
  692.   Christopher Klaus Larson (cklarson@relleno.engr.ucdavis.edu)
  693.   Peter N Lewis (peter.lewis@info.curtin.edu.au)
  694.   Jim Lloyd (afcjlloyd@aol.com)
  695.   Robert S. Mah (rmah@panix.com)
  696.   Deirdre Maloy (Deeny3@aol.com)
  697.   Nico Marcuz (nico@vaws01.bau-verm.uni-karlsruhe.de)
  698.   Alex Metcalf (alex@metcalf.demon.co.uk)
  699.   Matt Mora (mxmora@unix.sri.com)
  700.   Michael Morehead (busnetwork@aol.com)
  701.   Robert P Munafo (mrob@world.std.com)
  702.   Mark Pilgrim (f8dy@netaxs.com)
  703.   Francois Pottier (pottier@corvette.ens.fr)
  704.   Ken Prehoda (kenp@nmrfam.wisc.edu)
  705.   Paul Rademacher (paulr@cs.wvu.edu)
  706.   Ingemar Ragnemalm (ingemar@lysator.liu.se)
  707.   Kent Reuber (reuber@hydra.rose.brandeis.edu)
  708.   Daniel W. Rickey (drickey@irus.rri.uwo.ca)
  709.   Ed Walker (saseew@router.unx.sas.com)
  710.   Sak Wathanasin (sw@network-analysis-ltd.co.uk)
  711.   Gordon Watts (gwatts@whcdfo.fnal.gov)
  712.   William Edward Woody (woody@alumni.caltech.edu)
  713.   Chris Wysocki (wysocki@netcom.com)
  714.  
  715. ************************************************************
  716.  
  717. The archive's organization is as follows:
  718.  
  719. /ftp/pub - root directory for the archive.  All available files
  720.   can be found in this directory.
  721.   
  722. /ftp/pub/alt.sources.mac - Contains all articles posted to the
  723.   alt.sources.mac newsgroup as well as some items posted to the
  724.   comp.sys.mac.programmer newsgroup.  Also, any files uploaded
  725.   to the incoming folder are put here.  All of the files are
  726.   compressed using CompactPro and BinHex.  The files also include
  727.   an information file with the extension .info which explain what
  728.   the archive contains.  The 00abstracts file contains abstracts
  729.   of the files in the directory.
  730.   
  731. /ftp/pub/alt.sources.mac/00snippets - Contains small pieces of
  732.   code in a textual form (no compression or BinHexing).  The
  733.   00index file contains a brief description of each snippet.
  734.   
  735. /ftp/pub/alt.sources.mac/scripts - Contains scripts for any
  736.   scripting system available for the Mac (i.e. AppleScript or
  737.   Frontier).
  738.   
  739. /ftp/pub/comp.sources.atari.st - Source posted to the
  740.   comp.sources.atari.st newsgroup.  If the items are compressed,
  741.   they are extracted and re-compressed using CompactPro and
  742.   BinHex.
  743.   
  744. /ftp/pub/comp.sources.mac - Source posted to the comp.sources.mac
  745.   newsgroup.
  746.   
  747. /ftp/pub/digests - Contains all of the digests posted for the
  748.   alt.sources.mac archive.
  749.   
  750. /ftp/pub/incoming - Directory for uploading contributions to the
  751.   archive.  All files which get added to the archive spend some
  752.   time in this directory, so if you are looking for something
  753.   which should be in the archive but isn't yet, check here.
  754.   
  755. /ftp/pub/mac-faqs - FAQs for some of the Mac groups.  Contains all
  756.   of the "charter" information for the alt.sources.mac newsgroup.
  757.   
  758. /ftp/pub/mac-faqs/faq-sillyness - Contains the 'code' posted for
  759.   distributing the alt.sources.mac FAQ in source-code form.
  760.   
  761. /ftp/pub/other - Other Mac stuff (i.e. 2 program fonts, etc.).
  762.  
  763. /ftp/pub/soundsrc - Source for working with special sound formats.
  764.  
  765.  
  766.